package model;

/**
 * Team EBE - Elite Bombard Elephants
 * 
 * For this iteration, the class maintains a set of anchor points that are at
 * fixed intervals around the class outline, and are used by the relationship
 * line
 * 
 */
public class AnchorPoint {

	public int x, y, id;
	private String className;

	/**
	 * AnchorPoint is the model used to create the anchor points
	 * 
	 * @param xIn
	 *            the value of the x position of the anchor point
	 * @param yIn
	 *            the value of the y position of the anchor point
	 * @param classNameIn
	 *            the name of the class of the anchor point
	 * @param idIn
	 *            the identification value of the anchor point
	 */
	public AnchorPoint(int xIn, int yIn, String classNameIn, int idIn) {
		x = xIn;
		y = yIn;
		className = classNameIn;
		id = idIn;
	}

	/**
	 * getName gets the name of the class and returns that string
	 * 
	 * @return className the class name of the anchor point
	 */
	public String getName() {
		return className;
	}

	/**
	 * getId gets the identification value of the anchor point and returns it
	 * 
	 * @return id the identification number of the anchor point
	 */
	public int getId() {
		return id;
	}
}